package com.sinsoft.monitorDemo.entity;

public class CpuInfo {
	private Integer cores;       //CPU核心数
	private Integer processors;  //CPU线程数
	private Double used;         //使用率
	private Double user;         //用户使用率
	private Double system;       //系统占用率
	private Double idle;         //空闲比例
	private Double iowaite;       //io等待比例
	private Long time;          //时间
	private String ip;
	

	public CpuInfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public CpuInfo(Integer cores, Integer processors, Double used, Double user,
			Double system, Double idle, Double iowaite, Long time, String ip) {
		super();
		this.cores = cores;
		this.processors = processors;
		this.used = used;
		this.user = user;
		this.system = system;
		this.idle = idle;
		this.iowaite = iowaite;
		this.time = time;
		this.ip = ip;
	}

	public Integer getCores() {
		return cores;
	}

	public void setCores(Integer cores) {
		this.cores = cores;
	}

	public Integer getProcessors() {
		return processors;
	}

	public void setProcessors(Integer processors) {
		this.processors = processors;
	}

	public Double getUsed() {
		return used;
	}

	public void setUsed(Double used) {
		this.used = used;
	}

	public Double getUser() {
		return user;
	}

	public void setUser(Double user) {
		this.user = user;
	}

	public Double getSystem() {
		return system;
	}

	public void setSystem(Double system) {
		this.system = system;
	}

	public Double getIdle() {
		return idle;
	}

	public void setIdle(Double idle) {
		this.idle = idle;
	}

	public Double getIowaite() {
		return iowaite;
	}

	public void setIowaite(Double iowaite) {
		this.iowaite = iowaite;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Override
	public String toString() {
		return "CpuInfo [cores=" + cores + ", processors=" + processors
				+ ", used=" + used + ", user=" + user + ", system=" + system
				+ ", idle=" + idle + ", iowaite=" + iowaite + ", time=" + time
				+ ", ip=" + ip + "]";
	}
	
	

	
	
}
